/*************************************************************************
 *
 * $Id: pwrman.h 85 2006-08-31 15:35:48Z alpov $
 * 
 *************************************************************************/         

#ifndef _PWRMAN_H
#define _PWRMAN_H

#define power_present   ((PINA & _BV(PA2)) ? 1 : 0)
#define ADC_MUX_BATT    0
#define ADC_MUX_EXT     1

extern void InitPowerManagement(void);
extern unsigned int ReadVoltage(unsigned char mux);

#endif
